{{! -------------------------------------------------------------------------- }}
{{! Copyright 2002-2016, OpenNebula Project, OpenNebula Systems                }}
{{!                                                                            }}
{{! Licensed under the Apache License, Version 2.0 (the "License"); you may    }}
{{! not use this file except in compliance with the License. You may obtain    }}
{{! a copy of the License at                                                   }}
{{!                                                                            }}
{{! http://www.apache.org/licenses/LICENSE-2.0                                 }}
{{!                                                                            }}
{{! Unless required by applicable law or agreed to in writing, software        }}
{{! distributed under the License is distributed on an "AS IS" BASIS,          }}
{{! WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   }}
{{! See the License for the specific language governing permissions and        }}
{{! limitations under the License.                                             }}
{{! -------------------------------------------------------------------------- }}

<div class="snapshots large-12 columns" disk_id="{{diskId}}" style="padding-left: 30px;">
  <div class="row collapse">
    <div class="large-12 columns" style="padding-bottom: 1em;">
      {{#isTabActionEnabled "vms-tab" "VM.disk_saveas"}}
      <button class="disk_snapshot_saveas button secondary small radius" disabled="disabled">
        <span class="fa fa-save fa-fw"></span>{{tr "Save as"}}
      </button>
      {{/isTabActionEnabled}}
      {{#isTabActionEnabled "vms-tab" "VM.disk_snapshot_revert"}}
      <button class="disk_snapshot_revert button secondary small radius" disabled="disabled">
        <span class="fa fa-reply fa-fw"></span>{{tr "Revert"}}
      </button>
      {{/isTabActionEnabled}}
      {{#isTabActionEnabled "vms-tab" "VM.disk_snapshot_delete"}}
      <button class="disk_snapshot_delete button secondary small radius" disabled="disabled">
        <span class="fa fa-times fa-fw"></span>{{tr "Delete"}}
      </button>
      {{/isTabActionEnabled}}
    </div>
  </div>
  <div class="row collapse">
    <div class="large-12 columns" style="width:800px; overflow-x:auto">
      {{{snapshotsHTML}}}
    </div>
  </div>
</div>
